import asyncio

async def func():
    print('我是函数')

if __name__ == '__main__':
    # 协程对象想要执行，必须借助于 event_loop

    f = func()
    event_loop = asyncio.new_event_loop()
    event_loop.run_until_complete(f)